package com.wudl.doris.controller;

import com.wudl.doris.domain.DorisTest;
import com.wudl.doris.service.DorisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName : DorisController
 * @Description :
 * @Author :wudl
 * @Date: 2021-08-08 13:58
 */

@RestController
public class DorisController {

    @Autowired
    DorisService dorisService;

    @GetMapping("/dorislist")
    public List<DorisTest>  getListDoris()
    {
        return  dorisService.listDoris();
    }
}
